import Home from '@/views/Home.vue';

const famesIn = [
  // 子路由的配置
  // 子路由的内容会出现在 父路由的组件当中的 router-view
  {
    // 首页
    name: 'index', // 匹配的路径就是 /index
    // path: 'index/:id/:c',
    path: 'index',
    component: Home,
  },
  {
    name: 'qa',
    path: 'qa',
    component: () => import('@/views/qa.vue'),
  },
  {
    // 学员管理
    name: 'stu',
    path: 'stu',
    component: () => import('@/views/stu.vue'),
  },
  {
    name: 'company',
    path: 'company',
    component: () => import('@/views/company.vue'),
  },
  {
    // 权限管理
    name: 'role',
    path: 'role',
    component: () => import('@/views/role/index.vue'),
  },
];

export default famesIn;
